<link rel="stylesheet" type="text/css" href="/static/list/css/common.css" />
<script src="/static/list/js/lib/require.min.js"></script>
<script type="text/javascript">
    //定义加载模块
    var dev = 1;
    var APP = {
        load: function(module, boolean) {
            //不引入angular js情况
            if (boolean) {
                require([module], function() {
                    return module;
                });
            } else {
                require(['angular', module], function(angular) {
                    angular.element(document).ready(function() {
                        angular.bootstrap(document, ['app']);
                    });
                });
            }
        },
        path: dev ? '/static/list/js' : '/static/list/jsCompressed',
        G_csrf: "{{csrf}}",
    };


    require.config({
        paths: {
            "angular": ["/static/list/js/lib/angular"],
            "lodash": ["/static/list/js/lib/lodash"],
            "jquery": ["/static/list/js/lib/jquery.min"],
            'highstock': ["/static/list/js/lib/highstock"],
            'highstockZhCn': ["/static/list/js/lib/highcharts-zh_CN"],
            'd3': ["/static/list/js/lib/d3.v3.min", "http://cdn.bootcss.com/d3/3.5.17/d3"],
            'echarts': ["/static/list/js/lib/echarts-all", "https://cdn.bootcss.com/echarts/2.2.7/echarts-all"],
        },
        shim: {
            'angular': {
                exports: 'angular'
            },
            'highstock': {
                deps: ['jquery'],
            },
            'highstockZhCn': {
                deps: ['highstock'],
            },
        },
        //urlArgs: "bust=" + (new Date()).getTime() //注释掉
    });
</script>
